<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
    <h:head>
        <title>Login</title>
    </h:head>
    <h:body>
        <h:form>

            <h:panelGrid columns="2">
                <h:outputLabel value="#{bundle['auth.user.name']}" for="username" />
                <h:inputText id="username" value="#{loginController.username}" />

                <h:outputLabel value="#{bundle['auth.user.password']}" for="password" />
                <h:inputSecret id="password" value="#{loginController.password}" />

                <h:commandButton action="#{loginController.login}" value="#{bundle['auth.login']}" rendered="#{!loginController.logged}" />
                <h:commandButton action="#{loginController.logout}" value="#{bundle['auth.logout']}" rendered="#{loginController.logged}" />

            </h:panelGrid>

        </h:form>

    </h:body>
</html>

